草庐IT

Running Gradle task ‘assembleDebug‘

全部标签

Refused to execute script from ‘http://localhost:8080/login.html‘

Refusedtoexecutescriptfrom‘http://localhost:8080/login.html’最近学习SpringSecurity,在添加了SpringSecurity依赖后导致原先的网站图片、js代码都显示不出来了,浏览器报错,代码如下报错代码Refusedtoexecutescriptfrom'http://localhost:8080/login.html'becauseitsMIMEtype('text/html')isnotexecutable,andstrictMIMEtypecheckingisenabled.报错原因原因,将静态页面、JS、img等资源

在pycharm中配置conda虚拟环境时,出现没有跳出解释器路径选择界面、请选择有效解释器和CommandNotFoundError: No command ‘conda run‘的情况和解决方法。

出现CommandNotFoundError:Nocommand'condarun'的错误:可能是你的虚拟环境解释器路径没选对。没有跳出解释器路径选择界面的情况:原因尚未清楚。如果有大佬知道,请告诉我。本篇写了我在pycharm中配置虚拟环境时遇到的问题以及解决方法,也许对你有帮助。如果只想看关键解决步骤,可以直接从第4步看。1.我配置的是conda虚拟环境,过程参考了这篇:https://blog.csdn.net/m0_61635017/article/details/130283846?spm=1001.2014.3001.5506点击文件---设置,打开设置窗口,然后点击左边的项目--

Xcode15 framework ‘CoreAudioTypes‘ not found

Xcode15遇见"framework‘CoreAudioTypes’notfound。"可尝试移除CoreAudioTypes,添加CoreAudio。CoreAudio是CoreAudioTypes的套壳。CoreAudio/CoreAudioTypes.h头文件内容/*==================================================================================================CoreAudio/CoreAudioTypes.hhasmovedtoCoreAudioTypes/CoreAudioType

homebrew No remote ‘origin‘ in /opt/homebrew/Library/

homebrew安装命令:/bin/zsh-c"$(curl-fsSLhttps://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"本来是可以的,但是莫名其妙它就空文件夹了,就重新安装了一下,真的非常非常慢,大概要安了两个小时,结果brew install又报404,于是brew update又报错,可能是git的问题Noremote'origin'in/opt/homebrew/Library/Taps/homebrew/homebrew-services,skippingupdate。尝试解决: brew doctor,然后按照给的

move 操作后 C++ lambda ‘this’ 指针失效

我当前的项目中有以下(简化的)代码:#include#include#include#includeclassTest{public:Test()=default;Test(constTest&other)=delete;Test&operator=(constTest&other)=delete;Test(Test&&other)=default;Test&operator=(Test&&other)=default;voidsetFunction(){lambda=[this](){a=2;};}intcallAndReturn(){lambda();returna;}privat

成功解决TypeError: Object of type ‘ndarray‘ is not JSON serializable

目录成功解决TypeError:Objectoftype'ndarray'isnotJSONserializable错误原因解决方案1.使用tolist()方法2.使用astype()方法3.使用自定义Encoder结论示例代码1.使用tolist()方法2.使用astype()方法3.使用自定义Encoder成功解决TypeError:Objectoftype'ndarray'isnotJSONserializable在进行Python编程的过程中,有时候会遇到​​TypeError:Objectoftype'ndarray'isnotJSONserializable​​的错误。这个错误通常

SpringBoot出错:Consider defining a bean of type ‘com.mapper.UserMapper’找不到该bean.

com.xxxxx.service.tour.impl.ValuationServiceImpl中的valuationMapper需要一个类型为“com.xxxxx.mapper.evaluation.ValueionMapper”的bean,但找不到该bean。分析:1、确认是否存在ValueionMapper接口的实现类,并且实现类被正确注入到valuationMapper属性中。2、检查Mapper接口的扫描配置,确保包路径正确,能够扫描到com.xxxxx.mapper.evaluation包下的Mapper接口。3、确认Mapper接口的命名与实现类的命名是否匹配。1、配置Mybat

Content type ‘application.yml/json;charset=UTF-8‘ not supported 并出现 HTTP状态码:415

问题出现今天在写Springboot项目的时候,用axios去调用post请求访问后台的接口数据,发现HTTP状态码415。并且在控制台出现了这样的异常错误,在查看了请求表头以后发现请求标头是这样的考虑出现问题的原因通过报错可以看出,对于axios发出Content-Type:application.yml/json;charset=UTF-8这样的请求表头是无法进行支持的可能是Springboot的版本问题,对于这种的格式不支持问题解决于是我们就考虑对发送的请求表头的Content-Type进行修改由于我没有找到axios直接去修改请求表头里Content-Type的内容的方式于是我便从源码

keil 报错 *** Target ‘Target 1‘ uses ARM-Compiler ‘Default Compiler Version 5‘ which is not available

问题:***Target‘Target1’usesARM-Compiler‘DefaultCompilerVersion5’whichisnotavailable.这个错误是由于使用的ARM编译器“DefaultCompilerVersion5”不可用导致。原因是新版的keil不在自动下载v5版本的编译器,但是老版本使用的v5,所以需要手动安装v5的编译器。下载v5.06的编译器并添加到keil,下载链接如下:链接:https://pan.baidu.com/s/1HKY34HP4zjkDPGd1ikbX4w?pwd=gych提取码:gych具体操作方法:(参考的是dxh_wds的资料)1.进

【问题】 Package ‘docker-ce‘ has no installation candidate

要添加Docker存储库,您可以按照Docker官方网站上提供的说明进行操作。以下是您可以遵循的步骤摘要:为官方Docker仓库添加GPG密钥:Copycode$curl-fsSLhttps://download.docker.com/linux/debian/gpg|sudoapt-keyadd-将Docker存储库添加到您的系统:$sudoadd-apt-repository"deb[arch=amd64]https://download.docker.com/linux/debian$(lsb_release-cs)stable"更新您的软件包列表:$sudoapt-getupdate完